home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / disk / stock.lha / Stock.doc.en < prev    next >
Encoding:
Text File  |  1995-01-22  |  10.6 KB  |  202 lines

  1.              **************************************************
  2.              ***  STOCK  (Beta version) - Andrea Gualducci  ***
  3.              **************************************************
  4.  
  5. DISTRIBUTION
  6. Contents of file Stock.lha are in Public Domain.
  7. Stock may not be sold, but may be distributed everywhere as long as only a
  8. VERY SMALL fee is charged to cover the costs of copying and distribution.
  9. Please, always copy the whole archive Stock.lha with docs, auxiliary files.
  10. Don't send me any money, but E-Mail me to help me for next versions with
  11. suggestions, comments, etc.
  12.  
  13. REQUIRED SYSTEM
  14. All you need is an AMIGA with Hard Disk and a drive.
  15. Stock should work with ANY version of KICKSTART !!!
  16.  
  17. WHAT IS ?
  18. Stock is a STOCKING TOOL very useful to transfer files between hard disk
  19. and disks (any format). It isn't a catalog tool, I mean Stock doesn't take
  20. a global list of contents of your disks, but it manages the allocation of
  21. files to disks (and retrieving to hard disk), optimizing with a Best Fit
  22. algorithm.
  23. If you keep a collection of images, musical modules, compressed PD programs
  24. or something else, then you surely advised that a so big amount of files
  25. takes a very large area on your hard disk. Moving those files to disk isn't
  26. so easy as it could seems: it's necessary to apply full sized labels to
  27. every disk in order to take a note (by pencil) about the current list of 
  28. files inside it.
  29. And how to group files to fill up your disks and waste just a few blocks
  30. on any volume ?
  31. Let's say you've built an archive of images (40 disks, 100 or 200 files)
  32. and you want to retrieve your old drawing Castle.pic: could you remember
  33. wich disk your file is stored on ?
  34. If you kept disks labels ordered and updated, read them all and you surely
  35. find what you are looking for, but you wasted 10 minutes...
  36. And what if Castle.pic becomes a stupid thing to keep archived and you
  37. decide to delete it, how can you keep in mind that there is now a free
  38. space in that disk and you can use it to store anything else?
  39. Furthermore, it could be very useful to have a short comment for every
  40. archived item, easy to access, modify, delete...
  41. Well, Stock automatically solves all of those problems and it's very user
  42. friendly and easy to use !!!
  43. Stock can also store files larger than the disk's size, just splitting them
  44. in many disks, and retrieve them in a transparent way.
  45.  
  46. INSTALLATION
  47. Create a work directory for STOCK on your hard disk, i.e. DH0:StockDIR
  48. (give it any name), then assign the logical device TH: to it,
  49. i.e. "Assign TH: DH0:StockDIR".
  50. Next, copy "Stock" (executable) to ANY command directory, that is any
  51. directory included in your search PATH.; copy "Stock.types" to TH: work
  52. directory.
  53. That's all...
  54.  
  55. USAGE   
  56. Version 1.0 (and Beta version) of Stock doesn't use any kind of menu and
  57. everything is done by gadgets.
  58. Just after starting, Stock shows an area of file selection on the left, 10
  59. gadgets on the right and a comment area on the bottom of the window.
  60. The first operation you want to execute to use Stock it's CREATE a new
  61. archive, of course, that you perform clicking on gadget CREATE. Then Stock
  62. asks you by requester the name of that new archive and just after that you
  63. will be asked to select a type of archive by mouse, on a little window.
  64. That small window shows the list of types found in Stock.types (that MUST
  65. be in TH:) and loaded at program's start up. That file can be easily
  66. modified by ANY bare-text editor (such as Ed), so you can convert it to
  67. your language, add new types, etc.
  68. It could contain up to 10 types of 30 characters. Extra characters and
  69. extra types will be ignored.
  70. Those limitations are not so tight as they could seem, 'cause with "types"
  71. I just mean a wide class such as "PD Programs" or "Images".
  72. For a more specific comment to the archive there are 80 characters of note.
  73. Stock.types could be modified at any time, but the type of your new created
  74. archive will not.
  75. Let's say you have just created an archive named "Landscapes", type
  76. "Images", then in selection area will appear now the name of that archive
  77. and so will be in the little area just under the gadgets that always shows
  78. the currently selected archive.
  79. More, in the wide comment area some information will tell you about
  80. dimension of index file "Immagini.stk" (created with the new archive),
  81. type of archive as described above and write protection state.
  82. Second line in comment area could be used at any time to insert, modify or
  83. delete 78 characters of comment to the archive (use it as a specification
  84. to the archive type) that will be stored in TH: as a filenote to the
  85. index file.
  86. At this time Stock has also created a sub-directory in TH: named
  87. TH:Landscapes that I'll refere, now on, as "Buffer Directory" or simply
  88. "Buffer".
  89. Let's open now a CLI or a SHELL and transfer to the Buffer Directory all
  90. the files you want to archive, i.e. all the landscapes you have collected
  91. on your hard disk.
  92. Pressing gadget "Show Buffer" a list of those files will appear in the
  93. selection area: select now, by mouse, just one, a subset or none of them,
  94. then press gadget "STORE".
  95. If none of them was selected we will be asked for transferring ALL that
  96. files to archive disks, else just selected files will be transferred.
  97. Then Stock will ask to format a new disk giving it exactily the required
  98. name (use a parallel CLI or SHELL), to insert it in a drive and to
  99. specify which device the program must access that disk through. That
  100. information is necessary since some device of Amiga doesn't communicate
  101. the change of volume to the system, then it will be better to access
  102. all the volumes by device name (instead of volume names)!!!
  103. It ain't necessary to use normally formatted disks, ANY format will be
  104. accepted, i.e. DF0:, PC0:, DS0:, etc.
  105. If you have at disposal more than one drive I suggest you to use them in
  106. an alternate way, I mean even volumes on even drive, odd volumes on odd
  107. drive, i.e. DF0: for Landscapes00:, DF1: for Landscapes01:, DF0: for
  108. Landscapes02:, DF1: for Landscapes03: and so on...
  109. Archiviation is accomplished using a simple BEST FIT algorithm that
  110. examines each time the WHOLE disk list !!!
  111. After the creation of archive you can see it pressing "Show Archive" gadget
  112. and you can sort the list by name, by size or by disk, you can insert a 4
  113. lines comment for each file, selecting the comment area: it's important
  114. to press ENTER at the end of each line in order to correctly store it in
  115. memory!
  116. Further you can see the disk list pressing "Show Disks".
  117. If you are viewing the archived files list you can use the "Retrieve"
  118. gadget to copy archived files back to Buffer so to have them once again at
  119. disposal on hard disk.
  120. Then Stock will require necessary disks in order (from 00 to MAX) where the
  121. selected files are stored in. Unfortunately I didn't yet manage to
  122. eliminate the system requester so you should ALWAYS answer CANCEL to it
  123. to let Stock requester appear.
  124. BEWARE: STORE operation MOVES files from Buffer to Archive, but RETRIEVE
  125. operation just COPIES them from Archive to Buffer, without deleting them
  126. from disk.
  127. To delete files, archives or blank disks use the "DELETE" gadget.
  128. If you prevent Stock from accessing disk while deleting archivied items,
  129. it will always delete files from archive, but the physical copy will
  130. remain as a "ghost" file on your disk. Don't worry, the only effect is
  131. that your disk has lost some allocation capacity that you can recover at
  132. any time deleting the "ghost" file.
  133. "List Archives" gadget shows a list of every archive created and allows you
  134. to quickly switch between them.
  135. Finally, "Save & Quit" gadget work exactily like the close gadget of the
  136. window so when you exit Stock you are sure that modified archives will be
  137. updated. DON'T switch off your Amiga without exiting Stockto prevent
  138. damaging of archive informations.
  139. Using Stock you don't have to apply full-sized labels on disks: you just
  140. need very thin labels to write on just the volume name, i.e. "Landscapes00"
  141. "Landscapes01", etc. saving paper and...patience!!!
  142. Using Stock you also can archive files larger than the available blank disk
  143. space: Stock will automatically splits your too-large files in a few parts
  144. that will be merged back together in RETRIEVE operation. To do this Stock
  145. only looks for EMPTY disks. I suggest NOT to store files larger than 8M.
  146.  
  147. LIMITS
  148. Max number of disk for each archive:      100
  149. Max number of files for each archive:    2000
  150. Max number of types:                       10
  151. Max length of type strings:                30
  152. Max number of parts while splitting files: 10
  153.  
  154. DEVELOPMENT SYSTEM
  155. Written in C without any assembly optimization (no need) and compiled on
  156. Amiga 2000 with KickStart 1.3-2.0 switchable, 1M chip ram, 2M fast ram,
  157. Fatter Agnus PAL, STANDARD Denise, double drive, hard disk Quantum 85M.
  158.  
  159. VERSION
  160. This is Beta version that I release since I have not so much time to test
  161. and debug, so I'd like to have contribution from anybody who wish to use
  162. Stock.
  163. I've tested Stock for a couple of weeks about, but I CANNOT give you any
  164. warranty, at this moment, about perfect behaviour, then I suggest you:
  165. "DON'T USE BETA VERSION TO STORE IMPORTANT DATA", wait for V1.0.
  166. I'd be happy to reveive an E-Mail from anybody who has find out hidden
  167. bugs or just has got some advice to give me, comments or anything else.
  168. I'll release version 1.0 when the test period will be big enough to give
  169. some warranty: your help can shorten very much this period!
  170.  
  171. TO DO
  172. In version 2, Stock will be endowed with configurable menu that allows the
  173. user to accomplish some action directly on archived files whith non need to
  174. previously copy them to Buffer Directory.
  175. i.e. It would be nice and smart to be able to view files of an archive of
  176. images from disk, or docs; or extract files from a compressed archive
  177. stored away using Stock.
  178. I'd also like to allow some kind of treatment of files before stocking,
  179. some like compression, coding for error protection, etc.
  180. Furthermore second version will be able to transfer not just files, but
  181. directories also.
  182. I should apply an algorithm to format new disks. But I don't really want
  183. to do it because Amiga is a multitasking system so it's wise to use this
  184. feature: a parallel CLI or SHELL is the best solution. Use a parallel CLI
  185. or SHELL to transfer file from any place of your hard disk to Buffer and
  186. from Buffer to any place.
  187. HELP: How can I avoid system requester to pop up (that one saying "No disk
  188. present in device DF1:") ?
  189. I've placed  -1 in pr_WindowPtr field of current process, but it isn't
  190. enough !
  191. If you can suggest me how to do it, I'll be grateful :-)
  192. An AmigaGuide hypertext for documentation.
  193.  
  194. E-MAIL
  195. For comments, advices, pointing out to bugs, etc. you can contact me via
  196. E-Mail: gualducc@hp4.sm.dsi.unimi.it
  197. by mail: Andrea Gualducci - Via Po, 59 - 20030 Cormano - MILANO - ITALY
  198.  
  199.                         !!! DON'T LET AMIGA DIE !!!
  200.  
  201.  
  202.